import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/begRent',
    component: () => import(/* webpackChunkName: "begRent" */ '../views/BegRent.vue')
  },
  {
    path: '/askbuy',
    component: () => import(/* webpackChunkName: "askBuy" */ '../views/Askbuy.vue')
  },
  {
    path: '/live',
    component: () => import(/* webpackChunkName: "live" */ '../views/Live.vue')
  },
  {
    path: '/newLive',
    component: () => import(/* webpackChunkName: "newLive" */ '../views/NewLive.vue')
  },
  {
    path: '/response',
    component: () => import(/* webpackChunkName: "response" */ '../views/Response.vue')
  },
  {
    path: '/contact',
    component: () => import(/* webpackChunkName: "contact" */ '../views/Contact.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
